<?php
$id=$_GET['id'];
$foto = mysql_fetch_array(mysql_query("select foto from peserta where id_peserta = '$id'"));
$sql="delete from peserta where id_peserta='$id'";
unlink("foto_peserta/$foto[foto]");
$qry=mysql_query($sql);
$url_sukses="utama.php?module=mod_peserta";
if($qry){
	echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
	exit;
}else{
	echo mysql_error();
}
?>